package initialize

import (
	"api/work/global"
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
)

var err error

func InitMySQL() {
	dsn := "root:123456@tcp(127.0.0.1:3306)/month?charset=utf8mb4&parseTime=True&loc=Local"

	global.Db, err = gorm.Open(mysql.Open(dsn), &gorm.Config{})
}
